package com.example.pushmessage.controller;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * MQ相关配置参数
 */
@Component
@ConfigurationProperties(prefix = "rabbitmq")
public class RabbitMQProperties {

    private String host;

    private Integer port;

    private String virtual_host;

    private String username;

    private String password;


    @Override
    public String toString() {
        return "RabbitMQProperties{" +
                "host='" + host + '\'' +
                ", port='" + port + '\'' +
                ", virtual_host='" + virtual_host + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getVirtual_host() {
        return virtual_host;
    }

    public void setVirtual_host(String virtual_host) {
        this.virtual_host = virtual_host;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

}
